﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.BLL;

public partial class news_msn_UpdateBussinessProfileState : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            string stock = Request["stock"];
            DateTime endDate = DateTime.Parse(Request["enddate"]);
            YearProfileBLL bll = new YearProfileBLL();
            var c= bll.GetOne(stock, endDate);
            c.ModTime = DateTime.Now;
            c.BussinessProfileFlag = true;
            bll.Update(c);
            ClientScript.RegisterStartupScript(GetType(), "aa", "alert('设置成功');document.location='Default.aspx'", true);
        }


    }
}